package com.example.springframeworklearning.validator.annotation;

import com.example.springframeworklearning.validator.OrderConstraintValidator;

import javax.validation.Constraint;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD, ElementType.FIELD,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
//@Constraint(validatedBy = {OrderConstraintValidator.class})
public @interface ValidateOrder {
}
